﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GenerateDiagram
{
    public abstract class AbstractFactory
    {
        public  abstract AbstractColumn ColumnInstance { get; set; }
        public  abstract AbstractDatabase DatabaseInstance { get; set; }
        public   abstract AbstractTable TableInstance { get; set; }
        public  abstract AbstractColumnType ColumnTypeInstance { get; set; }
        //public abstract AbstractDatabases Databases { get; set; }

        private static AbstractFactory _Instance;
        public static AbstractFactory Instance
        {
            get
            {
                if (_Instance == null)
                    return new SqlFactory();
                return _Instance;
            }
        }
    }
}
